package com.walle.concurrenttest.pattern.threadspecificstorage;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.pattern.threadspecificstorage
 * @Description: ${todo}
 * @date 2019/2/27 13:59
 */
public class ClientThread extends Thread {

    public ClientThread(String name) {
        super(name);
    }

    @Override
    public void run(){
        try {
            System.out.println(getName() + " BEGIN!");
            for (int i = 0; i < 5; i++) {
                Log.print("i = " + i);
                Thread.sleep(1000);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Log.close();
        System.out.println(getName() + " END!");
    }
}
